package csm.web.core;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.velocity.context.Context;

import csm.web.core.TemplateServletBase;

public class ErrorServlet extends TemplateServletBase{
	/**	 */
	private static final long serialVersionUID = 6840691616974093751L;

	@Override
	public void populate(HttpServletRequest request,
			HttpServletResponse response, Context context) throws Exception {
		context.put("PAGE", getThemaName(request) + "/errors/error.vm");
	}

	public String getTemplateFile( HttpServletRequest request )
	{
		return "templates/Default.Template.vm";
	}
}
